home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / kms20src.lha / KMSAM / KMSAM.h < prev   
C/C++ Source or Header  |  1993-12-04  |  1KB  |  72 lines

  1. /*************************************************************/
  2. /* Includes and other common stuff for the MUI demo programs */
  3. /*************************************************************/
  4.  
  5. /* MUI */
  6. #include <libraries/mui.h>
  7.  
  8. /* UMS */
  9. #include <libraries/ums.h>
  10.  
  11. /* System */
  12. #include <dos/dos.h>
  13. #include <graphics/gfxmacros.h>
  14. #include <workbench/workbench.h>
  15. #include <exec/memory.h>
  16.  
  17. /* Prototypes */
  18. #include <clib/alib_protos.h>
  19. #include <clib/exec_protos.h>
  20. #include <clib/dos_protos.h>
  21. #include <clib/icon_protos.h>
  22. #include <clib/graphics_protos.h>
  23. #include <clib/intuition_protos.h>
  24. #include <clib/gadtools_protos.h>
  25. #include <clib/muimaster_protos.h>
  26. #include <clib/asl_protos.h>
  27. #include <clib/ums_protos.h>
  28.  
  29. /* ANSI C */
  30.  
  31. #include <stdlib.h>
  32. #include <string.h>
  33. #include <stdio.h>
  34. #include <time.h>
  35. #include <ctype.h>
  36.  
  37. /* Compiler specific stuff */
  38.  
  39. #define REG(x) __ ## x
  40. #define ASM
  41. #define SAVEDS __geta4
  42.  
  43. int brkfunc(void)
  44.    {
  45.    return(0);
  46.    }
  47.  
  48. int wbmain(struct WBStartup *wb_startup)
  49.    {
  50.    extern int main(int argc, char *argv[]);
  51.    
  52.    return main(0, NULL);
  53.    }
  54.  
  55. static VOID init(VOID)
  56.    {
  57.    onbreak(brkfunc);
  58.    }
  59.  
  60. static VOID stccpy(STRPTR dest, STRPTR source, int len)
  61.    {
  62.    strncpy(dest, source, len);
  63.    dest[len-1] = '\0';
  64.    }
  65.  
  66. #ifndef MAKE_ID
  67.    #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  68. #endif
  69.  
  70. LONG __stack = 4096;
  71.  
  72.